#include "stdio.h"

int main(void){

    long num;
    long sum = 0L;
    int status;

    printf("请输入status的值:");
    status = scanf("%ld",&num);
    printf("status:%d\n",status);

    /* while (status == 1)/*== 意思是"等于"*/
    /*{
        sum = sum + num;
        printf("next status:");
        status = scanf("%ld",&num);
        printf("status:%d\n",status);
    } */
    while (scanf("%ld",&num) == 1)
    {
        sum = sum + num;
        printf("next status:");
        status = scanf("%ld",&num);
        printf("status:%d\n",status);
    }
    


    printf("%-10ld",sum);

    


    return 0;
}